package com.hdd.art.biz.painting.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


@Data
public class PaintingWorksInfoVo {

    private Integer vid;
    private String id;
    private String artId;
    private Integer roomId;
    private Long visitCount;
    private String userId;
    private Integer status;
    @ApiModelProperty(value = "作品")
    private String painting;
    @ApiModelProperty(value = "音频地址")
    private String mediaUrl;
    private String statusDesc;
    private String paintingName;
    private String paintingDescription;
    private String isAdmin;
    private Long shows;
    private Long praises;
    private Long share;
    private boolean isPraisess;
    private Integer verifyStauts;
    private String createTime;
    private String medium;
    private String size;

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {

        if(null!=status){
            if(status==0){
                statusDesc = "待审核";
            }
            if(status==-1){
                statusDesc = "拒绝";
            }
            if(status==1){
                statusDesc = "通过";
            }
            if(status==2){
                statusDesc = "参展中";
            }
            if(status==3){
                statusDesc = "已撤展";
            }
        }
        this.status = status;
    }
}
